From: Eric S. Raymond Date: Wed, 17 Mar 1993 23:50:29 +0000 (+0000) Subject: Less klugey version of fix. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~96821 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=11838c0e241de7e4b6bf309b95df3efdc73851a0;p=emacs.git Less klugey version of fix. --- diff --git a/src/term.c b/src/term.c index ecbca87c8b7..8c824294134 100644 --- a/src/term.c +++ b/src/term.c @@ -1238,7 +1238,6 @@ term_get_fkeys (address) char **address; { extern char *tgetstr (); - char capval[32]; int i; for (i = 0; i < (sizeof (keys)/sizeof (keys[0])); i++) @@ -1288,7 +1287,7 @@ term_get_fkeys (address) else fcap[1] = 'a' + i - 11; - if (tgetstr(fcap, &capval)) + if (tgetstr(fcap, address)) { (void) sprintf(fkey, "f%d", i); Fdefine_key (Vfunction_key_map, @@ -1303,7 +1302,7 @@ term_get_fkeys (address) */ { #define CONDITIONAL_REASSIGN(cap1, cap2, sym) \ - if (!tgetstr(cap1, &capval) && tgetstr(cap2, &capval)) \ + if (!tgetstr(cap1, address) && tgetstr(cap2, address)) \ Fdefine_key (Vfunction_key_map, \ build_string (cap2), \ Fmake_vector (make_number (1), intern (sym)))